package com.apple1.blogservices;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.apple1.blogentity.User;
import com.apple1.blogentity.form.UserForm;

/**
 *
 * @author huangliwei
 * @date   2019年1月20日
 */
public interface UserService {
	
	public Object register(UserForm model, MultipartFile file, HttpServletRequest request);
	
	public Object login(User user, HttpServletRequest request);
	
	public Object getUserInfo(String userName);
	
	public Object getUserInfoList(int pageNum, int pageCount);
	
	public Object updateUserInfo(User user);
	
	/**
	 * 逻辑删除
	 * @param userName
	 * @return
	 */
	public Object deleteUser(String userName);

	/**
	 * @param email
	 * @return
	 */
	Object getEmailVaildCode(String email, HttpServletRequest request);

}
